/*  1:   */ package light.mvc.controller.notice;
/*  2:   */ 
/*  3:   */ import light.mvc.controller.base.BaseController;
/*  4:   */ import light.mvc.pageModel.base.Grid;
/*  5:   */ import light.mvc.pageModel.base.PageFilter;
/*  6:   */ import light.mvc.pageModel.notice.Training;
/*  7:   */ import light.mvc.service.notice.TrainingServiceI;
/*  8:   */ import org.springframework.beans.factory.annotation.Autowired;
/*  9:   */ import org.springframework.stereotype.Controller;
/* 10:   */ import org.springframework.web.bind.annotation.RequestMapping;
/* 11:   */ import org.springframework.web.bind.annotation.ResponseBody;
/* 12:   */ 
/* 13:   */ @Controller
/* 14:   */ @RequestMapping({"/training"})
/* 15:   */ public class TrainingController
/* 16:   */   extends BaseController
/* 17:   */ {
/* 18:   */   @Autowired
/* 19:   */   private TrainingServiceI trainingService;
/* 20:   */   
/* 21:   */   @RequestMapping({"/notice"})
/* 22:   */   public String manager()
/* 23:   */   {
/* 24:31 */     return "/notice/training";
/* 25:   */   }
/* 26:   */   
/* 27:   */   @RequestMapping({"/dataGrid"})
/* 28:   */   @ResponseBody
/* 29:   */   public Grid dataGrid(Training training, PageFilter ph)
/* 30:   */   {
/* 31:37 */     Grid grid = new Grid();
/* 32:38 */     grid.setRows(this.trainingService.dataGrid(training, ph));
/* 33:39 */     grid.setTotal(this.trainingService.count(training, ph));
/* 34:40 */     return grid;
/* 35:   */   }
/* 36:   */   
/* 37:   */   @RequestMapping({"/trainContent"})
/* 38:   */   public String grantPage()
/* 39:   */   {
/* 40:45 */     return "/notice/trainContent";
/* 41:   */   }
/* 42:   */ }


/* Location:           E:\lightmvc\WEB-INF\classes\
 * Qualified Name:     light.mvc.controller.notice.TrainingController
 * JD-Core Version:    0.7.0.1
 */